"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
exports.__esModule = true;
exports.AppModule = void 0;
var common_1 = require("@nestjs/common");
var common_redis_module_1 = require("./module/common/common.redis.module");
var common_request_module_1 = require("./module/common/common.request.module");
var common_mysql_module_1 = require("./module/common/common.mysql.module");
var user_module_1 = require("./module/user/user.module");
var component_module_1 = require("./module/component/component.module");
var component_version_module_1 = require("./module/version/component.version.module");
var category_module_1 = require("./module/category/category.module");
var department_module_1 = require("./module/department/department.module");
var upload_module_1 = require("./module/upload/upload.module");
var common_redis_service_1 = require("./service/common.redis.service");
var config_service_1 = require("./service/config.service");
var core_1 = require("@nestjs/core");
var auth_guard_1 = require("./auth.guard");
var AppModule = /** @class */ (function () {
    function AppModule() {
    }
    AppModule = __decorate([
        (0, common_1.Module)({
            imports: [
                common_request_module_1.CommonRequestModule,
                common_redis_module_1.CommonRedisModule,
                common_mysql_module_1.CommonMysqlModule,
                user_module_1.UserModule,
                component_module_1.ComponentModule,
                component_version_module_1.ComponentVersionModule,
                category_module_1.CategoryModule,
                department_module_1.DepartmentModule,
                upload_module_1.UploadModule,
            ],
            providers: [
                common_redis_service_1.CommonRedisService,
                {
                    provide: core_1.APP_GUARD,
                    useClass: auth_guard_1.AuthGuard
                },
                config_service_1.ConfigService,
            ],
            exports: [config_service_1.ConfigService]
        })
    ], AppModule);
    return AppModule;
}());
exports.AppModule = AppModule;
